package cn.openea.perpartner.crm.web.mapper;

import cn.openea.perpartner.crm.web.entity.CrmRoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * 角色和菜单关联表(CrmRoleMenu)表数据库访问层
 *
 * @author Weird077
 * @since 2022-12-19 22:30:36
 */
@Repository
public interface CrmRoleMenuMapper extends BaseMapper<CrmRoleMenu> {

    @Select("select count(1) from sys_role_menu where menu_id = #{menuId}")
    int checkMenuExistRole(Long menuId);
}

